<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">



    <input type="hidden" value="{$row.id|htmlentities}" name="row[id]"/>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('sort')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" data-rule="required" class="form-control" name="row[sort]"  value="{$row.sort|htmlentities}" type="number">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]"  value="{$row.title|htmlentities}" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" data-rule="required" class="form-control" name="row[money]" value="{$row.money|htmlentities}" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('looknum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-looknum" data-rule="required" class="form-control" name="row[looknum]" value="{$row.looknum|htmlentities}"  type="number">
        </div>
    </div>



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('isinit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[isinit]-normal"><input  name="row[isinit]" type="radio" value="1" {$row.isinit == 1 ? 'checked' :''}> 是</label>
                <label for="row[isinit]-hidden"><input  name="row[isinit]" type="radio" value="0" {$row.isinit == 0 ? 'checked' :''}> 否</label>
            </div>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2" >{:__('status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[status]-normal"><input  name="row[enabled]" type="radio" value="1" {$row.enabled == 1 ? 'checked' :''}> 启用</label>
                <label for="row[status]-hidden"><input  name="row[enabled]" type="radio" value="0" {$row.enabled == 0 ? 'checked' :''}> 禁用</label>
            </div>
        </div>
    </div>






    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
